<template>
  <el-form-item :prop="prop" :label="label">
    <MkDateTime v-bind="$attrs" :isEdit="isEdit" />
  </el-form-item>
</template>

<script lang="ts" setup>
// 简化表单中input的代码
defineOptions({
  name: 'MkFormDateTime'
})

const props = defineProps({
  prop: {
    type: String,
  },
  label: {
    type: String,
  },
  isEdit: {
    type: Boolean,
    default: true
  },
})

</script>

<style lang='scss' scoped></style>